package com.burger.counter.business;

import com.burger.counter.beans.Bun;
import com.burger.counter.dao.BunDao;

public class BunBusiness {
	public Bun[] getBunDetails(int regionId) throws Exception{
		System.out.println("we r in  business layer");
		BunDao bunDao = new BunDao();
		Bun[] bun=bunDao.getBunDetails(regionId);
		return bun;
	}
	
	public void setBunCount(int regionId,String BunName) throws Exception{
		System.out.println("we r in business layer");
		BunDao BunDao = new BunDao();
		BunDao.setBunCount(regionId, BunName);
	}	
}
